package demo.standard;

public class ConcreteObserverB implements IObserver {
    private ConcreteSubject subject;

    public ConcreteObserverB(ConcreteSubject subject) {
        this.subject = subject;
    }

    @Override
    public void receiveNotify() {
        System.out.println("观察者B接收到该主题的通知:" + subject.getClass().getSimpleName());
    }
}
